﻿<Window x:Class="Mido.UiModules.AboutDialogModule.AboutWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:aboutDialogModule="clr-namespace:Mido.UiModules.AboutDialogModule"
        xmlns:Properties="clr-namespace:Mido.Properties"
        Height="150.111" Width="404.499"
        ResizeMode="NoResize"
        WindowStyle="None"
        AllowsTransparency="True"
        Title="{x:Static Properties:Resources.AboutWindow_About}" WindowStartupLocation="CenterOwner">
    <Grid>
        <Border Margin="0,1,0,1" BorderBrush="{DynamicResource DefaultAppBrush}" BorderThickness="1" RenderTransformOrigin="0.5,0.5" Background="#FFF0F0F0">
            <Border.Effect>
                <DropShadowEffect Opacity="0.999" BlurRadius="16" ShadowDepth="0" />
            </Border.Effect>
            <DockPanel>
                <Grid DockPanel.Dock="Top" MouseDown="DragableGridMouseDown" Background="{DynamicResource DefaultAppBrush}" Height="25">
                    <Grid MouseDown="DragableGridMouseDown"/>
                    <TextBlock Text="{x:Static Properties:Resources.AboutWindow_About}" Margin="10,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="16" Foreground="White" RenderTransformOrigin="0.5,0.5" />
                    <StackPanel Grid.Column="1" Orientation="Horizontal" Margin="0,5,5,0" HorizontalAlignment="Right" VerticalAlignment="Top" Background="{DynamicResource DefaultAppBrush}">
                        <Button Style="{DynamicResource SystemButton}" Content="r" IsCancel="True"/>
                    </StackPanel>
                </Grid>
                
                <Border DockPanel.Dock="Top" BorderBrush="#FFE5E5E5" BorderThickness="0,0,0,1">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="70"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>

                        <Button Content="{x:Static Properties:Resources.AboutWindow_Close}" HorizontalAlignment="Right" Grid.Row="2" Margin="3" Width="70" IsCancel="True" Grid.Column="1"/>
                        <Image Height="50" Margin="10" Width="50" Source="/Mido;component/Styles/App.ico"/>
                        
                        <StackPanel Grid.Column="1" Margin="5">
                            <TextBlock Text="{x:Static aboutDialogModule:AboutViewModel.ProductName}" FontWeight="Bold" FontSize="20"/>
                            <TextBlock Text="{x:Static aboutDialogModule:AboutViewModel.ProductVersion}"/>
                        </StackPanel>

                        <TextBlock Text="{x:Static Properties:Resources.MainWindow_Developed_by_Artem_Taradeiko_and_Andrey_Davidchyk}" TextWrapping="Wrap" Grid.Row="1" Grid.ColumnSpan="2" Margin="10,0,10,0"/>

                    </Grid>
                </Border>
            </DockPanel>
        </Border>
    </Grid>
</Window>
